﻿using System;
using NUnit.Framework;
using SharePoint.Orm.TestHelpers;

namespace SharePoint.Orm.Helpers {
	[TestFixture]
	public class SPWebHelperTest : TestBase {
		[TestFixtureSetUp]
		public override void TestInitialize() {
			base.TestInitialize();
			SiteHelpers.EnsureSite();
			SiteHelpers.RemoveData();
		}

		[Test]
		public void TestFindOrAddField() {
			Assert.AreEqual(new Guid("4B2ECB3A-8648-4256-A31B-7BFA8925598B"), SiteHelpers._field1.Id);
		}

		[Test]
		public void TestFindOrAddFieldLookup() {
			Assert.AreEqual(new Guid("850A3501-6B1B-41D5-8CB1-2169D2BFC773"), SiteHelpers._field5.Id);
		}
	}
}
